#include "tuneautoframe.h"
#include "ui_tuneautoframe.h"

TuneAutoFrame::TuneAutoFrame(QWidget *parent) :
    QFrame(parent),
    ui(new Ui::TuneAutoFrame)
{
    ui->setupUi(this);

    pATuneControlParaFrame=new ATuneControlParaFrame(this);
    pATuneMethodSaveFrame=new ATuneMethodSaveFrame(this);
    //pATuneMonitorElementFrame=new ATuneMonitorElementFrame(this);
    pSpectralLineFrame=new SpectralLineFrame(this,new AnalyteDataBase,2);
    pATuneMonitorRatioFrame=new ATuneMonitorRatioFrame(this);
    pATuneStopTimeFrame=new ATuneStopTimeFrame(this);
    pATuneTuneStageFrame=new ATuneTuneStageFrame(this);
    ui->tabWidget->addTab(pATuneControlParaFrame,tr("控制参数"));
    //ui->tabWidget->addTab(pATuneMonitorElementFrame,tr("监控元素"));
    ui->tabWidget->addTab(pSpectralLineFrame,tr("监控元素"));

    ui->tabWidget->addTab(pATuneStopTimeFrame,tr("驻留时间"));
    ui->tabWidget->addTab(pATuneMonitorRatioFrame,tr("监控比值"));
    ui->tabWidget->addTab(pATuneTuneStageFrame,tr("调谐阶段"));
    ui->tabWidget->addTab(pATuneMethodSaveFrame,tr("方法保存"));
}

TuneAutoFrame::~TuneAutoFrame()
{
    delete ui;
}
